package com.tcloudit.system.api;

import com.tcloudit.common.core.constant.ServiceNameConstants;
import com.tcloudit.common.core.domain.R;
import com.tcloudit.common.core.web.domain.AjaxResult;
import com.tcloudit.system.api.domain.CamundaUserPost.PostProcessStatus;
import com.tcloudit.system.api.domain.CamundaUserPost.UserPost;
import com.tcloudit.system.api.factory.RemoteRoleFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 文件服务
 *
 * @author ruoyi
 */
@FeignClient(contextId = "remotePostService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteRoleFallbackFactory.class)
public interface RemoteRoleService
{

    /**
     * 根据用户id获取用户能使用的流程
     * @param userId 用户id
     * @return 结果
     */
    @GetMapping(value = "/role/selectUserIdAuth/{userId}")
    public R<List<String>> selectUserIdAuth(@PathVariable("userId") String userId);

}
